export function parseColor(hex) {
  if (!/\#(\w)*?/g.test(hex)) {
    return 0x000000;
  }
  const hexString = hex.replace("#", "0x");
  return parseInt(hexString, 16);
}
